home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Orbit:SampleCode:ScriptRunner:OSAPlugIn:ScriptRunnerAgent.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- #ifndef SOM_Module_Sample_defined
- #define SOM_Module_Sample_defined 1
- #include <som.xh>
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODPart;
- class ODDraft;
- #define kOSAScriptingTool "Apple Computer:OSA Scripting Tool"
-
- /*
- * End of user-defined types.
- */
- #endif /* SOM_Module_Sample_defined */
-
- #ifndef SOM_Sample_ScriptRunnerAgent_xh
- #define SOM_Sample_ScriptRunnerAgent_xh
-
- class Sample_ScriptRunnerAgent;
-
- #define Sample_ScriptRunnerAgent_MajorVersion 1
- #define Sample_ScriptRunnerAgent_MinorVersion 1
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef Sample_ScriptRunnerAgent_API
- #define Sample_ScriptRunnerAgent_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define Sample_ScriptRunnerAgentCClassData Sample_ScriptRunnerAgentClassData
- #define Sample_ScriptRunnerAgentNewClass(major,minor) somNewVersionedClassReference(Sample_ScriptRunnerAgent,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define Sample_ScriptRunnerAgentMetaClass SOMClass
-
-
- /* The API to the Sample_ScriptRunnerAgent class object, and the methods it introduces. */
- SOMEXTERN struct Sample_ScriptRunnerAgentClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken AcquireScriptRunner;
- } SOMDLINK Sample_ScriptRunnerAgentClassData;
-
- #if !defined(Sample_ScriptRunnerAgent_Class_Source) && !defined(SOM_Module_scriptrunneragent_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list Sample_ScriptRunnerAgentClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for Sample_ScriptRunnerAgent Method Procedures
- */
- SOMEXTERN {
- typedef ODExtension* (* SOMLINK somTD_Sample_ScriptRunnerAgent_AcquireScriptRunner)(Sample_ScriptRunnerAgent *somSelf, Environment *ev,
- ODDraft* draft);
- }
-
- #endif /* Sample_ScriptRunnerAgent_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for Sample_ScriptRunnerAgent
- */
- class Sample_ScriptRunnerAgent : public ODObject
- {
- public:
-
- // Sample_ScriptRunnerAgent::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for Sample_ScriptRunnerAgent, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(Sample_ScriptRunnerAgent);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(Sample_ScriptRunnerAgent);
- #endif
- }
-
- // Sample_ScriptRunnerAgent::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: AcquireScriptRunner */
- ODExtension* AcquireScriptRunner(Environment *ev,
- ODDraft* draft)
- {
- #ifdef SOMCHKEXCEPT
- ODExtension* __somResult =
- SOM_ResolveD(this,Sample_ScriptRunnerAgent,Sample_ScriptRunnerAgent,AcquireScriptRunner)
- (this,ev,draft);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,Sample_ScriptRunnerAgent,Sample_ScriptRunnerAgent,AcquireScriptRunner)
- (this,ev,draft);
- #endif
- }
-
- }; /* Sample_ScriptRunnerAgent */
-
-
-
- #endif /* SOM_Sample_ScriptRunnerAgent_xh */
-